package com.hnchances.pojo.entity;

public enum CommonCode implements Code{

    SUCCESS(200,"操作成功"),
    FAIL(0,"操作失败");

    private final int code;

    private final String msg;

    //构造方法
    CommonCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
